package main

import (
	"fmt"
	"io"
	"os"
)

func main() {
	//file, err := torrentfile.Open("C:\\Users\\Exler\\Desktop\\debian-10.9.0-amd64-netinst.iso.torrent")
	//Open("E:\\chat\\wechat\\Documents\\WeChat Files\\zyezhou\\FileStorage\\File\\2021-05\\21.7z - 副本.torrent")
	//if err != nil {
	//	fmt.Println(err.Error())
	//}
	//fmt.Println(file.Announce)
	//fmt.Println(file.InfoHash)
	//fmt.Println(file.Length)
	//file.DownloadToFile("")
	open, _ := os.Open("C:\\Users\\Exler\\Desktop\\a.txt")
	for {
		buffer := make([]byte, 3)
		full, err := io.ReadFull(open, buffer)

		fmt.Println(full)
		fmt.Println(buffer)
		fmt.Println(string(buffer))
		fmt.Println()

		if err != nil {
			fmt.Println(err.Error())
			break
		}
	}

}
